<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>SystemSharp: Microsoft.Experimental.IO.LongPathFile Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">SystemSharp
   &#160;<span id="projectnumber">0.3</span>
   </div>
   <div id="projectbrief">A system-level modeling framework for designing real-time embedded systems</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_file.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Events</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_file-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Microsoft.Experimental.IO.LongPathFile Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Provides static methods for creating, copying, deleting, moving, and opening of files with long paths, that is, paths that exceed 259 characters.  
 <a href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_file.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a222d379ccf55dd15667184b551cc85fe"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_file.html#a222d379ccf55dd15667184b551cc85fe">Exists</a> (string path)</td></tr>
<tr class="memdesc:a222d379ccf55dd15667184b551cc85fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a value indicating whether the specified path refers to an existing file.  <a href="#a222d379ccf55dd15667184b551cc85fe">More...</a><br/></td></tr>
<tr class="separator:a222d379ccf55dd15667184b551cc85fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad14fcaf22a5a12a851c9142be8582f8d"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_file.html#ad14fcaf22a5a12a851c9142be8582f8d">Delete</a> (string path)</td></tr>
<tr class="memdesc:ad14fcaf22a5a12a851c9142be8582f8d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deletes the specified file.  <a href="#ad14fcaf22a5a12a851c9142be8582f8d">More...</a><br/></td></tr>
<tr class="separator:ad14fcaf22a5a12a851c9142be8582f8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a904e925286ba584e187850b27a107946"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_file.html#a904e925286ba584e187850b27a107946">Move</a> (string sourcePath, string destinationPath)</td></tr>
<tr class="memdesc:a904e925286ba584e187850b27a107946"><td class="mdescLeft">&#160;</td><td class="mdescRight">Moves the specified file to a new location.  <a href="#a904e925286ba584e187850b27a107946">More...</a><br/></td></tr>
<tr class="separator:a904e925286ba584e187850b27a107946"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a693685fdcaa52fb901f57cced3c5f980"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_file.html#a693685fdcaa52fb901f57cced3c5f980">Copy</a> (string sourcePath, string destinationPath, bool overwrite)</td></tr>
<tr class="memdesc:a693685fdcaa52fb901f57cced3c5f980"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copies the specified file to a specified new file, indicating whether to overwrite an existing file.  <a href="#a693685fdcaa52fb901f57cced3c5f980">More...</a><br/></td></tr>
<tr class="separator:a693685fdcaa52fb901f57cced3c5f980"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2343c0b5874ebc1c1a56d85c064cb2b"><td class="memItemLeft" align="right" valign="top">static FileStream&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_file.html#ab2343c0b5874ebc1c1a56d85c064cb2b">Open</a> (string path, FileMode mode, FileAccess access)</td></tr>
<tr class="memdesc:ab2343c0b5874ebc1c1a56d85c064cb2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens the specified file.  <a href="#ab2343c0b5874ebc1c1a56d85c064cb2b">More...</a><br/></td></tr>
<tr class="separator:ab2343c0b5874ebc1c1a56d85c064cb2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61e45f561e2025cb4fc2f99850dbed04"><td class="memItemLeft" align="right" valign="top">static FileStream&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_file.html#a61e45f561e2025cb4fc2f99850dbed04">Open</a> (string path, FileMode mode, FileAccess access, FileShare share)</td></tr>
<tr class="memdesc:a61e45f561e2025cb4fc2f99850dbed04"><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens the specified file.  <a href="#a61e45f561e2025cb4fc2f99850dbed04">More...</a><br/></td></tr>
<tr class="separator:a61e45f561e2025cb4fc2f99850dbed04"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1051481618a1e5d9128f06f1159207ec"><td class="memItemLeft" align="right" valign="top">static FileStream&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_file.html#a1051481618a1e5d9128f06f1159207ec">Open</a> (string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options)</td></tr>
<tr class="memdesc:a1051481618a1e5d9128f06f1159207ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens the specified file.  <a href="#a1051481618a1e5d9128f06f1159207ec">More...</a><br/></td></tr>
<tr class="separator:a1051481618a1e5d9128f06f1159207ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Provides static methods for creating, copying, deleting, moving, and opening of files with long paths, that is, paths that exceed 259 characters. </p>

<p>Definition at line <a class="el" href="_long_path_file_8cs_source.html#l00014">14</a> of file <a class="el" href="_long_path_file_8cs_source.html">LongPathFile.cs</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a693685fdcaa52fb901f57cced3c5f980"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Microsoft.Experimental.IO.LongPathFile.Copy </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>sourcePath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>destinationPath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>overwrite</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Copies the specified file to a specified new file, indicating whether to overwrite an existing file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sourcePath</td><td>A String containing the path of the file to copy. </td></tr>
    <tr><td class="paramname">destinationPath</td><td>A String containing the new path of the file. </td></tr>
    <tr><td class="paramname">overwrite</td><td>if <em>destinationPath</em>  should be overwritten if it refers to an existing file, otherwise, . </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td><em>sourcePath</em>  and/or <em>destinationPath</em>  is . </td></tr>
    <tr><td class="paramname">ArgumentException</td><td><em>sourcePath</em>  and/or <em>destinationPath</em>  is an empty string (""), contains only white space, or contains one or more invalid characters as defined in Path.GetInvalidPathChars(). </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>sourcePath</em>  and/or <em>destinationPath</em>  contains one or more components that exceed the drive-defined maximum length. For example, on Windows-based platforms, components must not exceed 255 characters. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">PathTooLongException</td><td><em>sourcePath</em>  and/or <em>destinationPath</em>  exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 32,000 characters. </td></tr>
    <tr><td class="paramname">FileNotFoundException</td><td><em>sourcePath</em>  could not be found. </td></tr>
    <tr><td class="paramname">DirectoryNotFoundException</td><td>One or more directories in <em>sourcePath</em>  and/or <em>destinationPath</em>  could not be found. </td></tr>
    <tr><td class="paramname">UnauthorizedAccessException</td><td>The caller does not have the required access permissions. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>overwrite</em>  is true and <em>destinationPath</em>  refers to a file that is read-only. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">IOException</td><td><em>overwrite</em>  is false and <em>destinationPath</em>  refers to a file that already exists. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>sourcePath</em>  and/or <em>destinationPath</em>  is a directory. </p>
<p>-or- </p>
<p><em>overwrite</em>  is true and <em>destinationPath</em>  refers to a file that already exists and is in use. </p>
<p>-or- </p>
<p><em>sourcePath</em>  refers to a file that is in use. </p>
<p>-or- </p>
<p><em>sourcePath</em>  and/or <em>destinationPath</em>  specifies a device that is not ready. </p>

<p>Definition at line <a class="el" href="_long_path_file_8cs_source.html#l00237">237</a> of file <a class="el" href="_long_path_file_8cs_source.html">LongPathFile.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ad14fcaf22a5a12a851c9142be8582f8d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Microsoft.Experimental.IO.LongPathFile.Delete </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Deletes the specified file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>A String containing the path of the file to delete. </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td><em>path</em>  is . </td></tr>
    <tr><td class="paramname">ArgumentException</td><td><em>path</em>  is an empty string (""), contains only white space, or contains one or more invalid characters as defined in Path.GetInvalidPathChars(). </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  contains one or more components that exceed the drive-defined maximum length. For example, on Windows-based platforms, components must not exceed 255 characters. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">PathTooLongException</td><td><em>path</em>  exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 32,000 characters. </td></tr>
    <tr><td class="paramname">FileNotFoundException</td><td><em>path</em>  could not be found. </td></tr>
    <tr><td class="paramname">DirectoryNotFoundException</td><td>One or more directories in <em>path</em>  could not be found. </td></tr>
    <tr><td class="paramname">UnauthorizedAccessException</td><td>The caller does not have the required access permissions. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  refers to a file that is read-only. </p>
<p>-or- </p>
<p><em>path</em>  is a directory. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">IOException</td><td><em>path</em>  refers to a file that is in use. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  specifies a device that is not ready. </p>

<p>Definition at line <a class="el" href="_long_path_file_8cs_source.html#l00093">93</a> of file <a class="el" href="_long_path_file_8cs_source.html">LongPathFile.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a222d379ccf55dd15667184b551cc85fe"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool Microsoft.Experimental.IO.LongPathFile.Exists </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a value indicating whether the specified path refers to an existing file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>A String containing the path to check. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>if <em>path</em>  refers to an existing file; otherwise, . </dd></dl>
<p>Note that this method will return false if any error occurs while trying to determine if the specified file exists. This includes situations that would normally result in thrown exceptions including (but not limited to); passing in a file name with invalid or too many characters, an I/O error such as a failing or missing disk, or if the caller does not have Windows or Code Access Security (CAS) permissions to to read the file. </p>

<p>Definition at line <a class="el" href="_long_path_file_8cs_source.html#l00033">33</a> of file <a class="el" href="_long_path_file_8cs_source.html">LongPathFile.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a904e925286ba584e187850b27a107946"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Microsoft.Experimental.IO.LongPathFile.Move </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>sourcePath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>destinationPath</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Moves the specified file to a new location. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sourcePath</td><td>A String containing the path of the file to move. </td></tr>
    <tr><td class="paramname">destinationPath</td><td>A String containing the new path of the file. </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td><em>sourcePath</em>  and/or <em>destinationPath</em>  is . </td></tr>
    <tr><td class="paramname">ArgumentException</td><td><em>sourcePath</em>  and/or <em>destinationPath</em>  is an empty string (""), contains only white space, or contains one or more invalid characters as defined in Path.GetInvalidPathChars(). </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>sourcePath</em>  and/or <em>destinationPath</em>  contains one or more components that exceed the drive-defined maximum length. For example, on Windows-based platforms, components must not exceed 255 characters. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">PathTooLongException</td><td><em>sourcePath</em>  and/or <em>destinationPath</em>  exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 32,000 characters. </td></tr>
    <tr><td class="paramname">FileNotFoundException</td><td><em>sourcePath</em>  could not be found. </td></tr>
    <tr><td class="paramname">DirectoryNotFoundException</td><td>One or more directories in <em>sourcePath</em>  and/or <em>destinationPath</em>  could not be found. </td></tr>
    <tr><td class="paramname">UnauthorizedAccessException</td><td>The caller does not have the required access permissions. </td></tr>
    <tr><td class="paramname">IOException</td><td><em>destinationPath</em>  refers to a file that already exists. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>sourcePath</em>  and/or <em>destinationPath</em>  is a directory. </p>
<p>-or- </p>
<p><em>sourcePath</em>  refers to a file that is in use. </p>
<p>-or- </p>
<p><em>sourcePath</em>  and/or <em>destinationPath</em>  specifies a device that is not ready. </p>

<p>Definition at line <a class="el" href="_long_path_file_8cs_source.html#l00157">157</a> of file <a class="el" href="_long_path_file_8cs_source.html">LongPathFile.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ab2343c0b5874ebc1c1a56d85c064cb2b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static FileStream Microsoft.Experimental.IO.LongPathFile.Open </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FileMode&#160;</td>
          <td class="paramname"><em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FileAccess&#160;</td>
          <td class="paramname"><em>access</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Opens the specified file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>A String containing the path of the file to open. </td></tr>
    <tr><td class="paramname">access</td><td>One of the FileAccess value that specifies the operations that can be performed on the file. </td></tr>
    <tr><td class="paramname">mode</td><td>One of the FileMode values that specifies whether a file is created if one does not exist, and determines whether the contents of existing files are retained or overwritten. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A FileStream that provides access to the file specified in <em>path</em> . </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td><em>path</em>  is . </td></tr>
    <tr><td class="paramname">ArgumentException</td><td><em>path</em>  is an empty string (""), contains only white space, or contains one or more invalid characters as defined in Path.GetInvalidPathChars(). </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  contains one or more components that exceed the drive-defined maximum length. For example, on Windows-based platforms, components must not exceed 255 characters. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">PathTooLongException</td><td><em>path</em>  exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 32,000 characters. </td></tr>
    <tr><td class="paramname">DirectoryNotFoundException</td><td>One or more directories in <em>path</em>  could not be found. </td></tr>
    <tr><td class="paramname">UnauthorizedAccessException</td><td>The caller does not have the required access permissions. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  refers to a file that is read-only and <em>access</em>  is not FileAccess.Read. </p>
<p>-or- </p>
<p><em>path</em>  is a directory. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">IOException</td><td><em>path</em>  refers to a file that is in use. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  specifies a device that is not ready. </p>

<p>Definition at line <a class="el" href="_long_path_file_8cs_source.html#l00306">306</a> of file <a class="el" href="_long_path_file_8cs_source.html">LongPathFile.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a61e45f561e2025cb4fc2f99850dbed04"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static FileStream Microsoft.Experimental.IO.LongPathFile.Open </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FileMode&#160;</td>
          <td class="paramname"><em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FileAccess&#160;</td>
          <td class="paramname"><em>access</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FileShare&#160;</td>
          <td class="paramname"><em>share</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Opens the specified file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>A String containing the path of the file to open. </td></tr>
    <tr><td class="paramname">access</td><td>One of the FileAccess value that specifies the operations that can be performed on the file. </td></tr>
    <tr><td class="paramname">mode</td><td>One of the FileMode values that specifies whether a file is created if one does not exist, and determines whether the contents of existing files are retained or overwritten. </td></tr>
    <tr><td class="paramname">share</td><td>One of the FileShare values specifying the type of access other threads have to the file. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A FileStream that provides access to the file specified in <em>path</em> . </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td><em>path</em>  is . </td></tr>
    <tr><td class="paramname">ArgumentException</td><td><em>path</em>  is an empty string (""), contains only white space, or contains one or more invalid characters as defined in Path.GetInvalidPathChars(). </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  contains one or more components that exceed the drive-defined maximum length. For example, on Windows-based platforms, components must not exceed 255 characters. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">PathTooLongException</td><td><em>path</em>  exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 32,000 characters. </td></tr>
    <tr><td class="paramname">DirectoryNotFoundException</td><td>One or more directories in <em>path</em>  could not be found. </td></tr>
    <tr><td class="paramname">UnauthorizedAccessException</td><td>The caller does not have the required access permissions. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  refers to a file that is read-only and <em>access</em>  is not FileAccess.Read. </p>
<p>-or- </p>
<p><em>path</em>  is a directory. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">IOException</td><td><em>path</em>  refers to a file that is in use. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  specifies a device that is not ready. </p>

<p>Definition at line <a class="el" href="_long_path_file_8cs_source.html#l00375">375</a> of file <a class="el" href="_long_path_file_8cs_source.html">LongPathFile.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a1051481618a1e5d9128f06f1159207ec"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static FileStream Microsoft.Experimental.IO.LongPathFile.Open </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FileMode&#160;</td>
          <td class="paramname"><em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FileAccess&#160;</td>
          <td class="paramname"><em>access</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FileShare&#160;</td>
          <td class="paramname"><em>share</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>bufferSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FileOptions&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Opens the specified file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>A String containing the path of the file to open. </td></tr>
    <tr><td class="paramname">access</td><td>One of the FileAccess value that specifies the operations that can be performed on the file. </td></tr>
    <tr><td class="paramname">mode</td><td>One of the FileMode values that specifies whether a file is created if one does not exist, and determines whether the contents of existing files are retained or overwritten. </td></tr>
    <tr><td class="paramname">share</td><td>One of the FileShare values specifying the type of access other threads have to the file. </td></tr>
    <tr><td class="paramname">bufferSize</td><td>An Int32 containing the number of bytes to buffer for reads and writes to the file, or 0 to specified the default buffer size, 1024. </td></tr>
    <tr><td class="paramname">options</td><td>One or more of the FileOptions values that describes how to create or overwrite the file. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A FileStream that provides access to the file specified in <em>path</em> . </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td><em>path</em>  is . </td></tr>
    <tr><td class="paramname">ArgumentException</td><td><em>path</em>  is an empty string (""), contains only white space, or contains one or more invalid characters as defined in Path.GetInvalidPathChars(). </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  contains one or more components that exceed the drive-defined maximum length. For example, on Windows-based platforms, components must not exceed 255 characters. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentOutOfRangeException</td><td><em>bufferSize</em>  is less than 0. </td></tr>
    <tr><td class="paramname">PathTooLongException</td><td><em>path</em>  exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 32,000 characters. </td></tr>
    <tr><td class="paramname">DirectoryNotFoundException</td><td>One or more directories in <em>path</em>  could not be found. </td></tr>
    <tr><td class="paramname">UnauthorizedAccessException</td><td>The caller does not have the required access permissions. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  refers to a file that is read-only and <em>access</em>  is not FileAccess.Read. </p>
<p>-or- </p>
<p><em>path</em>  is a directory. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">IOException</td><td><em>path</em>  refers to a file that is in use. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  specifies a device that is not ready. </p>

<p>Definition at line <a class="el" href="_long_path_file_8cs_source.html#l00455">455</a> of file <a class="el" href="_long_path_file_8cs_source.html">LongPathFile.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_long_path_file_8cs_source.html">LongPathFile.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_microsoft.html">Microsoft</a></li><li class="navelem"><a class="el" href="namespace_microsoft_1_1_experimental.html">Experimental</a></li><li class="navelem"><a class="el" href="namespace_microsoft_1_1_experimental_1_1_i_o.html">IO</a></li><li class="navelem"><a class="el" href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_file.html">LongPathFile</a></li>
    <li class="footer">Generated on Thu Dec 26 2013 14:21:49 for SystemSharp by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
